﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DynaPrecision.LinearSystem;
namespace DynaPrecision
{
	public static class EMLinearSystemSolver
	{
		public static TResult SolveFor<TResult, TData>(this ILinearSystemSolver solver, IMultiDimensionalArray<TData> input, IMultiDimensionalArray<TData> load)
			where TResult : IInitializableArray<TData>, new()
		{
			TResult result = new TResult();
			result.Initiate(input.GetLength(1), 1);
			solver.SolveFor(input, load, result);
			return result;
		}

	}
}
